package com.my.framework.web.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.springframework.core.annotation.AliasFor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.my.annotation.Remark;

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@RequestMapping(method = {RequestMethod.GET},produces="text/html;charset=UTF-8")
@Remark
public @interface Page {
	
	//请求路径
	@AliasFor(annotation = RequestMapping.class,attribute="value")
	String path();
	
	//操作名称
	@AliasFor(annotation = Remark.class,attribute="value")
	String name();
}
